<table class="table table-hover">
  <thead>
  <tr>
    <th>#</th>
    <th>问题</th>
    <th>回答</th>
    <th>备注</th>
    <th>操作</th>
  </tr>
  </thead>
  <tbody>
  <% for (var i=0; i<data.length; i++) {%>
  <tr>
    <th scope="row"><%= i+1 %></th>
    <td><%= data[i].question %></td>
    <td><%= data[i].answer %></td>
    <td><%= data[i].remark %></td>
    <td><a class="btn btn-primary" href="/admin/faq/delete/<%= data[i].id %>">删除</a></td>
  </tr>
  <% } %>
  </tbody>
</table>
<h1>新增faq</h1>
<form action="/admin/faq/add" method="post" enctype="multipart/form-data">
  <div id="form-create">
    <div class="form-group">
      <label for="title-1">问题</label>
      <input type="text" class="form-control" id="title-1" name="question" placeholder="">
    </div>
    <div class="form-group">
      <label for="title-1">回答</label>
      <input type="text" class="form-control" id="title-1" name="answer" placeholder="">
    </div>
    <div class="form-group">
      <label for="title-1">附加说明</label>
      <input type="text" class="form-control" id="title-1" name="remark" placeholder="">
    </div>
    <button type="submit" class="btn btn-default">创建</button>
  </div>
</form>
